<template>
	<view class="bg_content">
		<view class="title_center"> 商品信息 </view>
		<view class="good_wrap">

			<view class="goods_box" v-for="(item, index) in orderlist" :key="index" @click="todetail(item.goods_id)">
				<view class="goods_item">
					<view class="sec_left">
						<image :src="item.prize_icon"></image>
					</view>

					<view class="sec_right">
						<view class="name">{{ item.prize_name }}</view>
						<view class="guige_box">规格:默认</view>
						<view class="price-num">
							<view class="price" style="color: #FED187;">￥{{ item.price }}/大王币{{ item.price }}</view>
							<view class="num" v-if="item.cat_id == 1">×{{ item.pay_mode }}</view>
							<view class="num" v-else>×{{ item.num }}</view>
						</view>
					</view>

				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			orderlist: []
		}
	},
	methods: {
		todetail(id) {
			uni.navigateTo({
				url: "/orderPage/index/mhlistDetail?goods_id=" + id
			})
		}
	}
}
</script>
<style lang="scss" scoped>
.bg_content {
	padding-left: 22rpx;
	padding-top: 14rpx;
	width: 100%;
	border-radius: 14rpx 14rpx 14rpx 14rpx;
	height: 324rpx;
	// background: #FFFFFF;
	border: 1rpx solid #FED187;
	;
	margin-bottom: 30rpx;

	.good_wrap {
		width: 100%;
		height: 284rpx;
		overflow-y: auto;
		// overflow-y: hidden;
		// background: #FFFFFF;
		border-radius: 14rpx 14rpx 14rpx 14rpx;
	}

	.title_center {
		font-size: 28rpx;
		font-family: Source Han Sans CN-Medium, Source Han Sans CN;
		font-weight: 500;
		color: #fff;
	}

	.goods_box {
		width: 100%;
		height: 266rpx;
		margin: 0 auto;
		position: relative;
		// background-color: #ffffff;
		opacity: 0.9;
		padding: 30rpx 0;
		margin-bottom: 29rpx;
		border-radius: 20rpx;

		.goods_item {
			display: flex;

			.sec_left {
				width: 210rpx;
				height: 210rpx;
				// background: #FFFFFF;
				border: 1rpx solid #FED187;
				border-radius: 18rpx;
				position: relative;
				text-align: center;

				image {
					width: 148rpx;
					height: 118rpx;
					line-height: 210rpx;
					position: absolute;
					top: 24%;
					left: 14%;
				}

				.type {
					width: 120rpx;
					height: 43rpx;
					background: #006CFF;
					border-radius: 0 14rpx 25rpx 0;
					text-align: center;
					position: absolute;
					color: #fff;
					left: -1%;
					top: -1%;
					font-size: 22rpx;
				}
			}

			.sec_right {
				// display: flex;
				// flex-direction: column;
				margin-left: 44rpx;

				.name {
					width: 326rpx;
					height: 82rpx;
					font-size: 24rpx;
					font-family: Source Han Sans CN-Medium, Source Han Sans CN;
					font-weight: 500;
					color: #fff;
					line-height: 60rpx;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}

				.guige_box {
					width: 200rpx;
					height: 50rpx;
					line-height: 50rpx;
					float: left;
					font-size: 24rpx;
					font-family: Source Han Sans CN-Medium, Source Han Sans CN;
					font-weight: 500;
					color: #fff;
				}

				.time {
					font-size: 24rpx;
					color: #FFB200;
					margin-top: 15rpx;
				}

				.price-num {
					width: 326rpx;
					display: flex;
					padding-top: 20rpx;

					.price {
						font-size: 24rpx;
						color: #21C8C1;
					}

					.num {
						justify-content: flex-end;
						margin-left: auto;
						width: 45rpx;
						font-size: 24rpx;
						font-weight: 500;
						color: #FED187;
					}
				}
			}
		}
	}
}
</style>
